<?php $this->load->view('_inc/header'); ?>

<table>
    <tr>
        <td style="width:20%;line-height: 25px; text-align: center">
            <table>
                <tr><td><img src='<?php echo base_url()?>public/fotos/<?php echo $aluno->id?>.jpg' class="perfil"/></td></tr>
                <tr><td><?php echo form_label('Aluno:'); echo $aluno->nome?></td></tr>
                <tr><td><?php echo form_label('Matrícula:'); echo $aluno->matricula?></td></tr>
                <tr><td><?php echo form_label('Curso:'); echo $aluno->curso?></td></tr>
                <tr><td><a class="icone editar">Editar Meus Dados</a></td></tr>
            </table>
        </td>
        <td style="width:80%" valign="top">
            <h1>Minhas Matérias</h1>
            <table class="listagem">
                <tr>
                    <th>Nome</th>
                    <th>Professor</th>
                    <th>Faltas</th>
                    <th>Situação</th>
                </tr>
                <?php foreach($materias as $materia){ ?>
                    <tr>
                        <td><?php echo $materia->disciplina?></td>
                        <td><?php echo $materia->nome?></td>
                        <td><?php echo $materia->faltas?></td>
                        <td><?php echo $materia->situacao?></td>
                        <td><?php echo anchor('aluno/verMateria/'.$materia->id,' ','class="icone pesquisar"')?></td>
                    </tr>
                <?php }?>
            </table>
        </td>
    </tr>
</table>

<?php $this->load->view('_inc/footer'); ?>